import  request from '@/utils/request';
import type {loginData,loginResponseData,IofoResponseData} from './model/login'

// 枚举
enum API{
    LOGIN='/admin/acl/index/login',
    Info='/admin/acl/index/info',
    LOGINOUT='/admin/acl/index/logout'
}
// 登录
export const reqLogin=(data:loginData)=>request.post<any,loginResponseData>(API.LOGIN,data)

// 用户
export const reqIofo=()=>request.get<any,IofoResponseData>(API.Info)

// 退出登录
export const reqLoginOut=()=>request.post<any,any>(API.LOGINOUT)